<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/view/include/taglib.jsp"%>
<html>
<head>
	<meta charset="utf-8" />
	<title>RCode | 睿代码管理平台 | 任务调度管理</title>
	<meta name="description" content="app, web app, responsive, admin dashboard, admin, flat, flat ui, ui kit, off screen nav" />
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
	<link rel="icon" type="image/png" href="icon.png">
	<link rel="apple-touch-icon-precomposed" href="icon.png">
	<link rel="stylesheet" href="${ctxStatic}/js/jPlayer/jplayer.flat.css" type="text/css" />
	<link rel="stylesheet" href="${ctxStatic}/css/bootstrap.css" type="text/css" />
	<link rel="stylesheet" href="${ctxStatic}/css/animate.css" type="text/css" />
	<link rel="stylesheet" href="${ctxStatic}/css/font-awesome.min.css" type="text/css" />
	<link rel="stylesheet" href="${ctxStatic}/css/simple-line-icons.css" type="text/css" />
	<link rel="stylesheet" href="${ctxStatic}/css/font.css" type="text/css" />
	<link rel="stylesheet" href="${ctxStatic}/css/app.css" type="text/css" />
	<%--<link rel="stylesheet" href="${ctxStatic}/js/page/paging.css" type="text/css" />--%>
	<!--[if lt IE 9]>
	<script src="${ctxStatic}/js/ie/html5shiv.js"></script>
	<script src="${ctxStatic}/js/ie/respond.min.js"></script>
	<script src="${ctxStatic}/js/ie/excanvas.js"></script>
	<![endif]-->
</head>
<body>
<section class="scrollable wrapper">
	<div class="row">
		<div class="col-lg-12">
			<!-- 引导开始 -->
			<ul class="breadcrumb">
				<li><a href="${ctx}/welcome"><i class="fa fa-home"></i> 主页</a></li>
				<li>系统设置</li>
				<li class="active">任务调度管理</li>
				<li class="active">任务调度编辑</li>
			</ul>
			<!-- 引导结束 -->
		</div>
	</div>
	<form class="bs-example form-horizontal" method="post" action="${ctx}/scheduleJob/update" >
		<section class="panel panel-default">
			<%--字典基本信息--%>
			<section class="panel panel-default">
				<header class="panel-heading font-bold">任务详情</header>
				<div class="panel-body">
					<div class="form-group">
						<label class="col-lg-2 control-label">任务名称：</label>
						<div class="col-lg-10">
							<input type="hidden" name="id" value="${scheduleJob.id}"/>
							<input type="text" name="jobName" class="form-control" value="${scheduleJob.jobName}">
						</div>
					</div>

					<div class="form-group">
						<label class="col-lg-2 control-label">任务分组：</label>
						<div class="col-lg-10">
							<input type="text" name="jobGroup" class="form-control" value="${scheduleJob.jobGroup}">
						</div>
					</div>

					<div class="form-group">
						<label class="col-lg-2 control-label">cron表达式：</label>
						<div class="col-lg-10">
							<input type="text" name="cron" class="form-control" value="${scheduleJob.cron}">
						</div>
					</div>

					<div class="form-group">
						<label class="col-lg-2 control-label">任务执行方法：</label>
						<div class="col-lg-10">
							<input type="text" name="beanClass" class="form-control" value="${scheduleJob.beanClass}">
						</div>
					</div>

					<div class="form-group">
						<label class="col-lg-2 control-label">是否同步：</label>
						<div class="col-lg-10">
							<select name="isConcurrent" class="form-control"  data="${scheduleJob.isConcurrent}">
								<c:forEach items="${yn}" var="m">
									<option value="${m.value}" <c:if test="${scheduleJob.isConcurrent==m.value}">selected="selected"</c:if>>${m.label}</option>
								</c:forEach>
							</select>
						</div>
					</div>

					<div class="form-group">
						<label class="col-lg-2 control-label">任务调用的方法名：</label>
						<div class="col-lg-10">
							<input type="text" name="methodName" class="form-control" value="${scheduleJob.methodName}">
						</div>
					</div>

					<div class="form-group">
						<label class="col-lg-2 control-label">描述：</label>
						<div class="col-lg-10">
							<input type="text" name="remarks" class="form-control" value="${scheduleJob.remarks}">
						</div>
					</div>

					<div class="form-group">
						<div class="col-lg-offset-2 col-lg-10">
							<button type="submit" class="btn btn-s-md btn-info">保存</button>
							<button type="button" class="btn btn-s-md btn-danger" onclick="closeModel(false)">关闭</button>
						</div>
					</div>
				</div>
			</section>
			<%--操作区域 结束--%>
		</section>
	</form>
</section>
</body>
<script src="${ctxStatic}/js/jquery.min.js"></script>
<!-- Bootstrap -->
<script src="${ctxStatic}/js/bootstrap.js"></script>
<!-- App -->
<script src="${ctxStatic}/js/app.js"></script>
<script src="${ctxStatic}/js/slimscroll/jquery.slimscroll.min.js"></script>
<script src="${ctxStatic}/js/app.plugin.js"></script>
<script type="text/javascript" src="${ctxStatic}/js/jPlayer/jquery.jplayer.min.js"></script>
<script type="text/javascript" src="${ctxStatic}/js/jPlayer/add-on/jplayer.playlist.min.js"></script>
<script type="text/javascript" src="${ctxStatic}/js/jPlayer/demo.js"></script>
<script type="text/javascript" src="${ctxStatic}/js/tools.js"></script>
<script type="text/javascript" src="${ctxStatic}/js/page/paging.js"></script>
<script type="text/javascript" src="${ctxStatic}/js/layer/layer.js"></script>
<script type="text/javascript" src="${ctxStatic}/js/tmpl/jquery.tmpl.js"></script>

<script>
    $(function(){
        var msg = '${msg}';
        if(msg!=''){
            showMsg(msg);
            closeModel(true);//关闭窗口
        }
    })

    var sortIndex = $("#contentTable tbody tr").size();

</script>
</html>
